package com.hamster.crm.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 员工管理实体类 对应表 employee
 * @author Tarry
 * @create 2019/12/21 13:48
 */
@Data
@TableName("employee") // 注解指定表名
public class Employee {
    @TableId
    @ExcelIgnore
    private String id; //主键id
    @Excel(name = "姓名")
    private String name;  //姓名
    @Excel(name = "手机号",width = 20)
    private String phone; //手机号
    @Excel(name = "性别")
    private String gender; //性别
    @Excel(name = "职位",replace = {"员工_0", "主管_1","经理_2","总监_3"})
    private String position; //职务级别  0 员工  1 主管   2 经理  3总监
    @Excel(name = "部门",replace = {"开发部_1", "服务部_2","事业部_3","财务部_4","后勤部_5","人事部_6"})
    private String department;      //部门
    @ExcelIgnore
    private String superiorId;     //上级的id
    @ExcelIgnore
    private String superiorName;     //上级的姓名
    @Excel(name = "生日",format = "yyyy-MM-dd",width = 20)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday; //生日
    @Excel(name = "入职日期",format = "yyyy-MM-dd",width = 20)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date joinTime; //入职日期
    @Excel(name = "身份证号",width = 20)
    private String idNumber; //身份证号
    @Excel(name = "现住址",width = 20)
    private String presentAddress; //现住址
    @ExcelIgnore
    private String province; //籍贯省份
    @ExcelIgnore
    private String city;      //籍贯城市
    @ExcelIgnore
    private String district;  //籍贯区
    @Excel(name = "籍贯",width = 20)
    private String provinceCityDistrict;  //省市区 三合一
    @Excel(name = "籍贯地址",width = 20)
    private String originalAddress; //籍贯地址
    @Excel(name = "紧急联系人",width = 20)
    private String emergencyContact; //紧急联系人
    @Excel(name = "员工状态",replace = {"入职_0", "离职_1", "实习期_2", "转正_3", "转岗_4"})
    private String employeeState;   //员工状态  0 在职   1 离职
    @Excel(name = "薪资")
    private String salary;          //工资
    @Excel(name = "招聘者")
    private String recruiter;       //招聘者
    @ExcelIgnore
    private String recruiterId;       //招聘者ID

    //最新评分
    @TableField(exist = false)
    @ExcelIgnore
    private Double  score;
    //最新评分日期
    @TableField(exist = false)
    @ExcelIgnore
    private Date scoreDate;

    //最新评分日期
    @TableField(exist = false)
    @ExcelIgnore
    private String jobLevel;


    @ExcelIgnore
    private String remark;   //备注
    @ExcelIgnore
    private String  inputUser;//录入人
    @ExcelIgnore
    private Date inputTime; //录入日期
    @ExcelIgnore
    private String del;//数据状态【删除标记】0正常   1删除




}
